/*
 *  lab11B1.c - exit and atexit system calls
 *
 */
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

// Forward declarations
static void my_exit1(void);

int main(int argc, char* argv[]){
   if (atexit(my_exit1) != 0)
      fprintf(stderr, " Unable to register my_exit1!\n" );

   printf("Hello CSIS 248\n");

   return 0;
}

static void my_exit1(void){
   printf(" ... exit handler 1.\n");
}
